.break-word {
  @include break-word;
}

.ellipsis-1 {
  @include ellipsis-line;
}

.ellipsis-2 {
  @include ellipsis(2);
}

.pointer {
  cursor: pointer;
}

.txt-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-active {
  @include hover-active;
}

.clear-fix {
  &::after {
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
    content: ' ';
  }
}

.text-center {
  text-align: center;
}

.flex-row {
  @include flex-row;
  flex-shrink: 0;

  &.vertical-center {
    align-items: center;
  }

  &.vertical-start {
    align-items: flex-start;
  }

  &.horizon-center {
    justify-content: center;
  }
}

.flex-column {
  @include flex-column;

  &.vertical-center {
    justify-content: center;
  }

  &.horizon-center {
    align-items: center;
  }
}

.flex-item,
.flex-item-relative {
  // ie11里flex:1=flex:1 1 0 为兼容ie11，要补完
  @include flex-item;

  // ie11可能要用flex:grow
  // flex-grow: 1;
}

.flex-item-relative {
  position: relative;

  .flex-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
}

.flex-not-shrink {
  @include flex-not-shrink;
}

.hide-tooltip {
  display: none;
}

.app-icon-common {
  color: #666;
  font-size: 1.2em;
}

.empty-tips {
  color: #808080;
  text-align: center;

  &.full {
    width: 100%;
    height: 100%;
  }

  &.center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.clickable {
  text-decoration: underline;
  cursor: pointer;

  &:hover {
    color: var(--color-primary);
  }

  & + & {
    margin-left: 10px;
  }

  &[not-link] {
    text-decoration: none;
  }
}

.clickable-hover {
  cursor: pointer;

  &:hover {
    color: var(--color-primary);
    text-decoration: underline;
  }

  & + & {
    margin-left: 10px;
  }
}

.tree-box {
  display: table;
  min-width: 100%;
}

.color-picker {
  position: fixed;
}

.file-name-box {
  display: flex;

  .file-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background-repeat: no-repeat;
  }

  .file-name {
    flex: 1 1 auto;
  }
}

.drag-mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}

.table-row-pointer .el-table__row {
  cursor: pointer;
}

.fixed-header-footer-popover {
  @include flex-column;
  padding-right: 0;
  padding-left: 0;

  %left-right-padding {
    padding-right: 12px;
    padding-left: 12px;
  }

  .el-popover__title {
    @extend %left-right-padding;
  }

  .el-divider--horizontal {
    margin: 10px 0;
  }

  .fixed-header-footer-popover-footer {
    margin: 5px 0 0;
    padding-top: 12px;
    padding-right: 12px;
    padding-left: 12px;
    text-align: right;
    border-top: 1px solid #dcdfe6;
  }

  .el-checkbox-group,
  .el-radio-group {
    @include flex-item;
    width: 100%;
    max-height: 60vh;
    padding-left: 12px;
    overflow: auto;
  }

  .el-checkbox,
  .el-radio {
    @include flex-row;
    width: 100%;
    margin-top: 10px;

    .el-checkbox__label,
    .el-radio__label {
      @include flex-item;
      @include ellipsis-line;
    }

    .el-checkbox__input,
    .el-radio__input {
      @include flex-not-shrink;
      display: inline-block;
    }
  }
}

.built-on {
  position: relative;
  bottom: -4px;
  margin-left: 10px;
  color: #ff985c;
  font-size: 10px;
}

.text_grey {
  color: #595959;
}
